import { $post, $get } from "@/api/request";

export function preLogin(data) {
  return $get({
    url: "/user/ucenter/preLogin/" + data
  });
}
// 登出
export function loginOut(data) {
  return $post({
    url: "/user/ucenter/logout", // "/userInfo/logout",
    data
  });
}
// 验证码
export function verifyCode(data) {
  return $get({
    url: "/user/ucenter/verifyCode",
    data
  });
}
export function login(data) {
  return $post({
    url: "/user/ucenter/loginWithCode",
    data
  });
}

// 修改密码
export function changeUserPwd(data) {
  return $post({
    url: "/user/ucenter/uuser/changePassword",
    data
  });
}
// 反馈信息
export function feedbackInfo(data) {
  return $post({
    url: "/feedbackInfo/add",
    data
  });
}

// 获取用户信息
export function getUserInfo(data) {
  return $get({
    url: "/user/ucenter/weChat/tokenUser/" + data,
  });
}
